<?php
	require('jacked_configVars.php');
	require('jacked_functions.php');		
	if(!validateLogin()){
		exit();
	}
	require('jacked_configpdnet.php');
	require('jacked_pdnetfunctions.php');
	
	$pageType = "jacked";
	$pageTitle = "JACKED Manager";
		
	require('bodyTop.php');
	echo JACKED_HEADING_STRING;

    

?>	

   	<h2>JACKED PoorDecisions.net</h2>
   	
 <!--  	<?php echo $msg; ?> !-->
   	
   	<?php 
$id=$_GET['id'];


//$db_selected = mysql_select_db('pdnet_content', $link);
//if (!$db_selected){
  //  die('Cant use pd : ' . mysql_error());
   // }
    
$query="SELECT * FROM Submission WHERE id='$id'";
$result=mysql_query($query, JACKED_DEFAULT_LINK);
$num=mysql_numrows($result); 


$i=0;
while ($i < $num) {
$decision=stripslashes(mysql_result($result,$i,"decision"));
$aresult=stripslashes(mysql_result($result,$i,"result"));
?>
<form action="jacked_managepdnet_post.php" method="post">
<input type="hidden" name="theid" value="<? echo "$id"; ?>">
Decision: <textarea rows="6" cols="50" type="text" name="thedecision"><? echo "$decision"?></textarea><br>
Result: <textarea  rows="6" cols="50" name="theresult"><? echo "$aresult"?></textarea><br>
Tags: <textarea rows="5" cols="50" name="thetags"></textarea><br>
<input type="Submit" value="Update">
</form>

<?
++$i;
}

?>

	
<div class="blogspace"></div>
<a href="jacked_admin.php">Cancel/Back</a>


<?php	
	require('bodyBottom.php');
?>